import { createApp } from 'vue';
import './style.css';
import App from './App.vue';
// import { pinia } from '@pinia/pinia';
import piniaPersist from 'pinia-plugin-persist';
import ArcoVue from '@arco-design/web-vue';
import '@arco-design/web-vue/dist/arco.css';
import ArcoVueIcon from '@arco-design/web-vue/es/icon';
import router from './router';
// import '../mock/mock.ts';
import { createPinia } from 'pinia';
import VXETable from 'vxe-table';
import 'vxe-table/lib/style.css';
import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
import ExcelJS from 'exceljs';
import VxeUI from 'vxe-pc-ui';
import 'vxe-pc-ui/lib/style.css';
import DataVVue3 from '@kjgl77/datav-vue3';
import canDelete from '@/directives/can-delete.js';

// import 'default-passive-events';
// 创建vue实例
const app = createApp(App);
const pinia = createPinia();
// 挂载pinia
app.use(pinia);
app.directive('can-delete', canDelete);

app.use(router);
app.use(ArcoVue);
app.use(ArcoVueIcon);
app.use(VXETable);
app.use(VxeUI);
app.use(DataVVue3);


pinia.use(piniaPersist);

VxeUI.use(VxeUIPluginExportXLSX, {
  ExcelJS
});



// 挂载实例
app.mount('#app');
